package top.digger.web.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import top.digger.web.entity.SysUser;
import top.digger.web.entity.common.AjaxResult;
import top.digger.web.entity.common.page.TableDataInfo;
import top.digger.web.service.DataReportService;

import java.util.ArrayList;
import java.util.List;


@Controller
@RequestMapping("/data")
public class DataReportController extends BaseController{

    private String prefix = "data/point";

    @Autowired
    public DataReportService dataReportService;

    @GetMapping("/sh_point")
    @ResponseBody
    public AjaxResult shPoint() {
        return dataReportService.getShPoint();
    }

    @GetMapping("/point")
    public String echarts()
    {
        return prefix + "/point";
    }
}
